home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3507 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  799 b 

  1. Path: hack.lakeheadu.ca!romulus
  2. From: romulus@lakeheadu.ca (Romulus the Almighty)
  3. Newsgroups: comp.lang.c
  4. Subject: Writing to a port
  5. Message-ID: <22898@storm.LakeheadU.Ca>
  6. Date: 29 Jan 1996 16:48:27 GMT
  7. Sender: news@storm.LakeheadU.Ca
  8. Organization: dis
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Help would be greatly appreciated with the following:
  12.  
  13. I am attempting to make a cgi C program that will telnet to port 25 on
  14. a server, take an argument to who the sender is, and take the rest of the
  15. argument and send it to the recipient directly using sendmail on port 25            
  16. of a server.  I use system(); to telnet over to the port and here is where
  17. my problem is:  How do I send statements directly to the port such as
  18. "HELO flash.lakeheadu.ca" and the other necessary statements...
  19.  
  20. Thanx
  21.  
  22.     John
  23.  
  24.